﻿@model IEnumerable<AuditModel.CandidateQuota>

@{
    var grid = new WebGrid(source: Model, defaultSort: "CountyCode", rowsPerPage:20);
}
@grid.GetHtml( 
    columns: grid.Columns(
            grid.Column("AnnualEventId", AuditResources.AnnualEvents.ID),
                grid.Column("Subject.Name", AuditResources.CandidateQuota.SubjectId),
                grid.Column("County.Name", AuditResources.CandidateQuota.CountyCode),
                grid.Column("Quota", AuditResources.CandidateQuota.Quota),
                grid.Column("UserId", string.Empty, format: @<text>@Html.RouteLink(AuditResources.UI.Edit, "CandidateQuota", new { action = "Edit", annualeventid = item.AnnualEventID, subjectid = item.SubjectID, countycode = item.CountyCode }, new { Class = "button" }) | @Html.RouteLink(AuditResources.UI.Delete, "CandidateQuota", new { action = "Delete", annualeventid = item.AnnualEventID, subjectid = item.SubjectID, countycode = item.CountyCode }, new { Class = "button" }) </text>)
                        ))


